<?php
// Calculate root path
$CLC_ROOT = $_SERVER["REQUEST_URI"];
$pos = strpos($CLC_ROOT, "/index.php");
$CLC_ROOT = substr($CLC_ROOT, 1, $pos - 1); // /cloud/index.php -> cloud
$YYPIE_STATIC = '/'.$CLC_ROOT.'/Static'; // Define static path for __PUBLIC__

define('APP_DEBUG', true);
define('APP_NAME', $CLC_ROOT); // This line ensure wherever we are put, we work find always. Ensure remove Runtime after change dir
define('APP_PATH', './');
define('YYPIE_STATIC', $YYPIE_STATIC);

require("../../ThinkPHP/ThinkPHP.php");
?>
